<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="generator" content="AsciiDoc 8.6.8" />
<link rel="Shortcut Icon" href="/images/favicon.ico" type="image/x-icon" />
<title></title>
<link rel="stylesheet" href="asciidoc-2.css" tppabs="http://old.peachfuzzer.com/v2/asciidoc.css" type="text/css" />
<link rel="stylesheet" href="website-2.css" tppabs="http://old.peachfuzzer.com/v2/website.css" type="text/css" />
</head>

<body>

<div id="layout-menu-box">
<div id="layout-menu">
  <div><a href="WhatIsPeach.html" tppabs="http://old.peachfuzzer.com/WhatIsPeach.html">What is Peach</a></div>
  <div><a href="Installation.html" tppabs="http://old.peachfuzzer.com/v3/Installation.html"><b>Installing</b></a></div>
  <div><a href="PeachQuickStart.html" tppabs="http://old.peachfuzzer.com/v3/PeachQuickStart.html"><b>Tutorials</b></a></div>
  <div><a href="Methodology.html" tppabs="http://old.peachfuzzer.com/Methodology.html">Methodology</a></div>
  <div><a href="Introduction.html" tppabs="http://old.peachfuzzer.com/Introduction.html">Introduction</a></div>
  <div><a href="Training.html" tppabs="http://old.peachfuzzer.com/Training.html">Training</a></div>
  <div><a href="javascript:if(confirm(%27http://www.dejavusecurity.com/peach.html  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://www.dejavusecurity.com/peach.html%27" tppabs="http://www.dejavusecurity.com/peach.html">Enterprise</a></div>
  <div><a href="FAQ.html" tppabs="http://old.peachfuzzer.com/v3/FAQ.html">FAQ</a></div>
  <div><a href="javascript:if(confirm(%27http://forums.peachfuzzer.com/forum.php  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://forums.peachfuzzer.com/forum.php%27" tppabs="http://forums.peachfuzzer.com/forum.php">Support Forums</a></div>

  <div><h5>Peach 3</h5></div>
  <div><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="PeachPit.html" tppabs="http://old.peachfuzzer.com/v3/PeachPit.html">Peach Pits</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="GeneralConfiguration.html" tppabs="http://old.peachfuzzer.com/v3/GeneralConfiguration.html">General Conf</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="DataModeling.html" tppabs="http://old.peachfuzzer.com/v3/DataModeling.html">Data Modeling</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="StateModel.html" tppabs="http://old.peachfuzzer.com/v3/StateModel.html">State Modeling</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="AgentsMonitors.html" tppabs="http://old.peachfuzzer.com/v3/AgentsMonitors.html">Agents</a></div>
  <div>&nbsp;&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="AgentsMonitors.html" tppabs="http://old.peachfuzzer.com/v3/AgentsMonitors.html">Monitors</a></div>
  <div>&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="TestConfig.html" tppabs="http://old.peachfuzzer.com/v3/TestConfig.html">Test</a></div>
        <div>&nbsp;&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="Publisher.html" tppabs="http://old.peachfuzzer.com/v3/Publisher.html">Publishers</a></div>
  <div>&nbsp;&nbsp;<img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="Logger.html" tppabs="http://old.peachfuzzer.com/v3/Logger.html">Loggers</a></div>
  <!-- <div>&nbsp;<img src="/images/1.gif" /><a href="/v3/DebuggingPitFiles.html">Debugging Pits</a></div> -->
  <!-- <div>&nbsp;<img src="/images/1.gif" /><a href="/v3/ValidatingPitFiles.html">Validating Pits</a></div> -->
  <div><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="RunningPeach.html" tppabs="http://old.peachfuzzer.com/v3/RunningPeach.html">Running</a></div>
  <!-- <div><img src="/images/1.gif" /><a href="/v3/ParallelPeach.html">Parallel</a></div> -->
  <!-- <div><img src="/images/1.gif" /><a href="/v3/ExtendingPeach.html">Extending</a></div> -->
  <div><img src="1.gif" tppabs="http://old.peachfuzzer.com/images/1.gif" /><a href="minset.html" tppabs="http://old.peachfuzzer.com/v3/minset.html">Minset</a></div>

  <div><h5><a href="peach23.html" tppabs="http://old.peachfuzzer.com/v2/peach23.html">Peach 2.3</a></h5></div>

  <div><hr/></div>

  <div><a href="License.html" tppabs="http://old.peachfuzzer.com/License.html">License</a></div>
</div>
</div>
<div id="layout-content-box">
<div id="layout-banner">
  <div id="layout-title">
    <a href="index.htm" tppabs="http://old.peachfuzzer.com/"><img src="peach_fuzzer.png" tppabs="http://old.peachfuzzer.com/images/peach_fuzzer.png" height="100" /></a>
    <a href="javascript:if(confirm(%27http://www.dejavusecurity.com/peach.html  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://www.dejavusecurity.com/peach.html%27" tppabs="http://www.dejavusecurity.com/peach.html" class="layout-inner-banner-right">
                <img height="50" src="dejavusecurity.png" tppabs="http://old.peachfuzzer.com/images/dejavusecurity.png" /></a>
  </div>

  <div id="layout-description">
  <script>
  (function() {
    var cx = '007028538774543840348:g-0dlrdlmxs';
    var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true;
    gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
        '//www.google.com/cse/cse.js?cx=' + cx;
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s);
  })();
</script>
<gcse:search></gcse:search>
      </div>
</div>
<div id="layout-content">
<div id="content">
<div class="sect1">
<h2 id="_examples">Examples</h2>
<div class="sectionbody">
<div class="paragraph"><p>The following examples are for Peach v2.3 and can also be found in the "samples" folder.</p></div>
</div>
</div>
<div class="sect1">
<h2 id="_hello_world">Hello World</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World Example"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!--</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        This is a very simple Hello World example.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Syntax:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">          python peach.py samples\HelloWorld.xml</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Output:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">          This example will display all each test case to the console, you should see lots of test data</span></span>
<span style="font-style: italic"><span style="color: #9A1900">          scroll along.  This example should only take a couple minutes to complete.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Authors:</span></span>
<span style="font-style: italic"><span style="color: #9A1900">          Michael Eddington (mike@phed.org)</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        $Id: HelloWorld.xml 1768 2009-06-18 04:32:33Z meddingt $</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        --&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Create a simple data template containing a single string --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorldTemplate"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World!"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"State1"</span> <span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State1"</span>  <span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span> <span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorldTemplate"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorldTest"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Display test cases to the console --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"stdout.Stdout"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Configure a single run --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Run</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"DefaultRun"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"Stdout HelloWorld Run"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorldTest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Run&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_asn_1">ASN.1</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"HTTP Protocol"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!--</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        This is an example of defining ASN.1 encoded data for fuzzing an ASN.1 encoded</span></span>
<span style="font-style: italic"><span style="color: #9A1900">        protocol.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Note: This fuzzer will respect the ASN.1 encoding standards and not attempt to</span></span>
<span style="font-style: italic"><span style="color: #9A1900">              fuzz the ASN.1 decoder in the target.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Authors:</span></span>
<span style="font-style: italic"><span style="color: #9A1900">          Michael Eddington (mike@phed.org)</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        $Id: ASN.1_Example.xml 1762 2009-06-11 23:46:24Z meddingt $</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        --&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>


        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- A template contianing some ASN.1 BER encoded data --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Asn1Ber"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- define a ber encoded string --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"char"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World!"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Transformer</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"asn1.BerEncodeOctetString"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/String&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- define a ber encoded integer --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Number</span></span> <span style="color: #009900">size</span><span style="color: #990000">=</span><span style="color: #FF0000">"16"</span> <span style="color: #009900">signed</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Transformer</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"asn1.BerEncodeInteger"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Number&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>


        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- A template contianing some ASN.1 DER encoded data --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Asn1Der"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- define a ber encoded string --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"char"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World!"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Transformer</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"asn1.DerEncodeOctetString"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/String&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- define a ber encoded integer --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Number</span></span> <span style="color: #009900">size</span><span style="color: #990000">=</span><span style="color: #FF0000">"16"</span> <span style="color: #009900">signed</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Transformer</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"asn1.DerEncodeInteger"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Number&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>


        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- A template contianing some ASN.1 CER encoded data --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Asn1Ber"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- define a ber encoded string --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"char"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World!"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Transformer</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"asn1.CerEncodeOctetString"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/String&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- define a ber encoded integer --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Number</span></span> <span style="color: #009900">size</span><span style="color: #990000">=</span><span style="color: #FF0000">"16"</span> <span style="color: #009900">signed</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Transformer</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"asn1.CerEncodeInteger"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Number&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_debugger_on_windows">Debugger on Windows</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!--</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Example of the WindowsDebugger monitor.  This example will launch a</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                program with an attached debugger and log stack traces on faults.  The</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                included example program will fault on test 47.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Syntax:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                  python peach.py -a</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                  python peach.py samples\Debugger.xml</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Output:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                  You will see the tests scroll along.  Once test 47 has occured you can check</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                  the c:\peach\logfiles folder for a log of this test that will include a Debugger.txt</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                  faul output.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Authors:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                  Michael Eddington (mike@phed.org)</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                $Id: Debugger.xml 807 2008-03-25 08:34:38Z meddingt $</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        --&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TestTemplate"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheString"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World!"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- &lt;Action type="connect" /&gt; --&gt;</span></span>

                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"SendValue1"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TestTemplate"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"SendValue2"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TestTemplate"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- &lt;Action type="close" /&gt; --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Agent</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"LocalAgent"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Monitor</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"debugger.WindowsDebugEngine"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"CommandLine"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"C:\Peach\samples\CrashableServer\x64\release\CrashableServer.exe 127.0.0.1 4242"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Monitor&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Agent&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheTest"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Agent</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"LocalAgent"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"tcp.Tcp"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"host"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"127.0.0.1"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"port"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"4242"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Publisher&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;Run</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"DefaultRun"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheTest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Logger</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"logger.Filesystem"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"path"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"c:\peach\logtest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Logger&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Run&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_debugger_on_unix">Debugger on UNIX</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!--</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Example of the WindowsDebugger monitor.  This example will launch a</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                program with an attached debugger and log stack traces on faults.  The</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                included example program will fault on test 47.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Syntax:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                  python peach.py -a</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                  python peach.py samples\Debugger.xml</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Output:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                  You will see the tests scroll along.  Once test 47 has occured you can check</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                  the c:\peach\logfiles folder for a log of this test that will include a Debugger.txt</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                  faul output.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Authors:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                  Michael Eddington (mike@phed.org)</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                $Id: Debugger.xml 807 2008-03-25 08:34:38Z meddingt $</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        --&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TestTemplate"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheString"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World!"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"SendValue1"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TestTemplate"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Agent</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"LocalAgent"</span> <span style="color: #009900">location</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://127.0.0.1:9000"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Monitor</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"debugger.UnixDebugger"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Command"</span>
                <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"/Volumes/Untitled/peach/samples/UnixCrashServer/unixcrash"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Params"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">""</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Monitor&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Agent&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheTest"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Agent</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"LocalAgent"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"tcp.Tcp"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"host"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"127.0.0.1"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"port"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"4242"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Publisher&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Mutator</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"string.StringTokenMutator"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;Run</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"DefaultRun"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheTest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Logger</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"logger.Filesystem"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"path"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"logtest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Logger&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Run&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_file_fuzzing">File Fuzzing</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!--</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Example of the WindowsDebugger monitor.  This example will launch a</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                program with an attached debugger and log stack traces on faults.  The</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                included example program will fault on test 47.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Syntax:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                python peach.py -a</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                python peach.py samples\Debugger.xml</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Output:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                You will see the tests scroll along.  Once test 47 has occured you can check</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                the c:\peach\logfiles folder for a log of this test that will include a Debugger.txt</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                faul output.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Authors:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Michael Eddington (mike@phed.org)</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                $Id: Debugger.xml 807 2008-03-25 08:34:38Z meddingt $</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        --&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Define our file format DDL --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TestTemplate"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World!"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Define a simple state machine that will write the file and</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                then launch a program using the FileWriterLauncher publisher --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Write out contents of file --&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"WriteFile"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TestTemplate"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Close file --&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"close"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Launch the file consumer --&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"call"</span> <span style="color: #009900">method</span><span style="color: #990000">=</span><span style="color: #FF0000">"ScoobySnacks"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Setup a local agent that will monitor for faults --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Agent</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"LocalAgent"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Monitor</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"debugger.WindowsDebugEngine"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- The command line to run.  Notice the filename provided matched up</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                                to what is provided below in the Publisher configuration --&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"CommandLine"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"c:\windows\system32\notepad.exe fuzzfile.bin"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- This parameter will cause the debugger to wait for an action-call in</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                                the state model with a method="ScoobySnacks" before running</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                                program.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                                Note: You will also need to add a parameter to the publisher called</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                                    "debugger" and set it to "true"!</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                                --&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StartOnCall"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"ScoobySnacks"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Monitor&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Enable heap debugging on our process as well. --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Monitor</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"process.PageHeap"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Executable"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"notepad.exe"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Monitor&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Agent&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheTest"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Agent</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"LocalAgent"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Configure our publisher with correct filename to write too --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"file.FileWriterLauncher"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"fileName"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"fuzzfile.bin"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"debugger"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Publisher&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Run</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"DefaultRun"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheTest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Configure a logger to store collected information --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Logger</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"logger.Filesystem"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"path"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"c:\peach\logtest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Logger&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Run&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_file_fuzzing_gui_application">File Fuzzing GUI Application</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Define our file format DDL --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"FileData"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World!"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Define a simple state machine that will write the file and</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                then launch a program using the FileWriterLauncher publisher --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"open"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Write out contents of file --&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"WriteFile"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"FileData"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>

                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Close file --&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"close"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Launch the file consumer --&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"call"</span> <span style="color: #009900">method</span><span style="color: #990000">=</span><span style="color: #FF0000">"notepad.exe"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Setup a local agent that will monitor for faults --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Agent</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"LocalAgent"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Monitor</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"debugger.WindowsDebugEngine"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- The command line to run.  Notice the filename provided matched up</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                                to what is provided below in the Publisher configuration --&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"CommandLine"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"c:\windows\system32\notepad.exe fuzzedfile.txt"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- This parameter will cause the debugger to wait for an action-call in</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                                the state model with a method="notepad.exe" before running</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                                program.  --&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"StartOnCall"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"notepad.exe"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Monitor&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Enable heap debugging on our process as well. --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Monitor</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"process.PageHeap"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Executable"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"notepad.exe"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Monitor&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Agent&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheTest"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Agent</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"LocalAgent"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Configure our publisher with correct filename to write too --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"file.FileWriterLauncherGui"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"fileName"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"fuzzedfile.txt"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"windowName"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Notepad"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"debugger"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Publisher&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Run</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"DefaultRun"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheTest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Logger</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"logger.Filesystem"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"path"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"c:\peach\logtest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Logger&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Run&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_">==</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt>}}}

== Generate All Fuzzed Files ==

{{{#code xml
<span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World Example"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!--</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Example of using the FilePerIteration publisher</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Syntax:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">          python peach.py samples\FilePerIteration.xml</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Output:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">          Lots and lots of "FilePer-%d.txt files.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Authors:</span></span>
<span style="font-style: italic"><span style="color: #9A1900">          Michael Eddington (mike@phed.org)</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        $Id: HelloWorld.xml 807 2008-03-25 08:34:38Z meddingt $</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        --&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Create a simple data template containing a single string --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorldTemplate"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World!"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"State1"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State1"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorldTemplate"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorldTest"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"file.FilePerIteration"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"fileName"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"FilePer-%d.txt"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Publisher&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Configure a single run --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Run</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"DefaultRun"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"Stdout HelloWorld Run"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorldTest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Run&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_relation_size">Relation: Size</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"Examples of size relation"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!--</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Demonstraits the "size" data relation.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Syntax:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">      python peach.py samples\RelationSize.xml</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Output:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">          TODO</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Authors:</span></span>
<span style="font-style: italic"><span style="color: #9A1900">          Michael Eddington (mike@phed.org)</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        $Id: RelationSize.xml 1762 2009-06-11 23:46:24Z meddingt $</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        --&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Create a simple data template containing a single string --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RelationSizeTemplate"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">isStatic</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Length of following string is: "</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">isStatic</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Relation</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"size"</span> <span style="color: #009900">of</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorld"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/String&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">isStatic</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"\n"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorld"</span> <span style="color: #009900">isStatic</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World!"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"RelationCountTemplate"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Out tests set will contain this single test --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RelationSizeTests"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Display test cases to the console --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"stdout.Stdout"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Configure a single run --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Run</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RelationSizeRun"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"Stdout HelloWorld Run"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- The set of tests to run --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"RelationSizeTests"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Run&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_relation_count">Relation: Count</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"Example of count relations"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!--</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Demonstraits the "count" data relation.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Syntax:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">      python peach.py samples\RelationCount.xml</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Output:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">          TODO</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Authors:</span></span>
<span style="font-style: italic"><span style="color: #9A1900">          Michael Eddington (mike@phed.org)</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        $Id: RelationCount.xml 1762 2009-06-11 23:46:24Z meddingt $</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        --&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Create a simple data template containing a single string --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RelationCountTemplate"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">isStatic</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Count of hello worlds is "</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">isStatic</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Relation</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"count"</span> <span style="color: #009900">of</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorld"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/String&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">isStatic</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"\n"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorld"</span> <span style="color: #009900">minOccurs</span><span style="color: #990000">=</span><span style="color: #FF0000">"5"</span> <span style="color: #009900">maxOccurs</span><span style="color: #990000">=</span><span style="color: #FF0000">"10"</span> <span style="color: #009900">isStatic</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World! "</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheState"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"FirstState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"FirstState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"RelationCountTemplate"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Out tests set will contain this single test --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RelationCountTest"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheState"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Display test cases to the console --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"stdout.Stdout"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Configure a single run --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Run</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"DefaultRun"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"Stdout HelloWorld Run"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- The set of tests to run --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"RelationCountTest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Run&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_network">Network</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World Example"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!--</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Example of the Network monitor.  This example requires two machines.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                The included example program will fault on test 47.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Configure:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Change 192.168.1.195 to IP of second machine.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Syntax:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                2nd machine: python peach.py -a</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                1st machine:  python peach.py samples\Debugger.xml</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Output:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                You will see the tests scroll along.  Once test 47 has occured you can check</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                the c:\peach\logfiles folder for a log of this test that will include a Debugger.txt</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                and Network.pcap faul output.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Authors:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Michael Eddington (mike@phed.org)</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                $Id: Network.xml 1762 2009-06-11 23:46:24Z meddingt $</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        --&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpRequest"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World!"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheStateModel"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheState"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpRequest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Agent</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"LocalAgent"</span> <span style="color: #009900">location</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://127.0.0.1:9000"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Monitor</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Debugger"</span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"debugger.WindowsDebugger"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Command"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"C:\Peach\samples\CrashableServer\release\CrashableServer.exe"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Params"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"192.168.1.195"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Monitor&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Monitor</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Network"</span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"network.PcapMonitor"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"filter"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"tcp"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Monitor&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Agent&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpRequestTest"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"HTTP Request GET Test"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Agent</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"LocalAgent"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheStateModel"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"tcp.Tcp"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"host"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"192.168.1.195"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"port"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"4242"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Publisher&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Run</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"DefaultRun"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"HTTP Request Run"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpRequestTest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Logger</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"logger.Filesystem"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"path"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"c:\peach\logtest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Logger&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Run&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_network_server">Network Server</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!--</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Server side of the remote include example.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Authors:</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                Michael Eddington (mike@phed.org)</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                $Id: Server-Example.xml 1762 2009-06-11 23:46:24Z meddingt $</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        --&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorldTemplate"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">isStatic</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello from phed.org!"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"State1"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State1"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Wait for incoming connection --&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"accept"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HelloWorldTemplate"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheTest"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TestState"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"tcp.TcpListener"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"host"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"127.0.0.1"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"port"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"9001"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Publisher&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Run</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"DefaultRun"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheTest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Run&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_remote_include">Remote Include</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!--</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Example of including a remote Peach DDL file.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Syntax:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                python peach.py samples\RemoteInclude.xml</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Output:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Will display "Hello from phed.org!"</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Authors:</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                Michael Eddington (mike@phed.org)</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                $Id: RemoteInclude.xml 1762 2009-06-11 23:46:24Z meddingt $</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        --&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Include a file from a web-site --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"example"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/Peach/Example.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"example:HelloWorldTemplate"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RemoteIncludeTest"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Reference our remote template using a namespace prefix --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"stdout.Stdout"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Run</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"DefaultRun"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"Stdout HelloWorld Run"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"RemoteIncludeTest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Run&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_remote_publisher">Remote Publisher</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!--</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Example of the WindowsDebugger monitor.  This example will launch a</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                program with an attached debugger and log stack traces on faults.  The</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                included example program will fault on test 47.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Syntax:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                python peach.py -a</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                python peach.py samples\Debugger.xml</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Output:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                You will see the tests scroll along.  Once test 47 has occured you can check</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                the c:\peach\logfiles folder for a log of this test that will include a Debugger.txt</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                faul output.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Authors:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                Michael Eddington (mike@phed.org)</span></span>

<span style="font-style: italic"><span style="color: #9A1900">                $Id: Debugger.xml 807 2008-03-25 08:34:38Z meddingt $</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        --&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TestTemplate"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheString"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World!"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"SendValue1"</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TestTemplate"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Agent</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RemoteAgent"</span> <span style="color: #009900">location</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://192.168.1.190:9000"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- This agent will get our remote publisher --&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Load up our target --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Monitor</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"debugger.WindowsDebugEngine"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"CommandLine"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"C:\Peach\samples\CrashableServer\release\CrashableServer.exe 192.168.1.190 4242"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Monitor&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Agent&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheTest"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Agent</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"LocalAgent"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Agent</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"RemoteAgent"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"remote.RemotePublisher"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"agent"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"RemoteAgent"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"name"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"pub1"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"class"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"tcp.Tcp"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"host"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"192.168.1.190"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"port"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"4242"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Publisher&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Run</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"DefaultRun"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"TheTest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Logger</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"logger.Filesystem"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"path"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"c:\peach\logtest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Logger&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Run&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
<div class="sect1">
<h2 id="_http">HTTP</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content"><!-- Generator: GNU source-highlight 3.1.7
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt><span style="font-weight: bold"><span style="color: #000080">&lt;?xml</span></span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span> <span style="color: #009900">encoding</span><span style="color: #990000">=</span><span style="color: #FF0000">"utf-8"</span><span style="font-weight: bold"><span style="color: #000080">?&gt;</span></span>
<span style="font-weight: bold"><span style="color: #0000FF">&lt;Peach</span></span> <span style="color: #009900">xmlns</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach"</span> <span style="color: #009900">xmlns:xsi</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://www.w3.org/2001/XMLSchema-instance"</span>
        <span style="color: #009900">xsi:schemaLocation</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://phed.org/2008/Peach ../peach.xsd"</span> <span style="color: #009900">version</span><span style="color: #990000">=</span><span style="color: #FF0000">"1.0"</span>
        <span style="color: #009900">author</span><span style="color: #990000">=</span><span style="color: #FF0000">"Michael Eddington"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"Hello World Example"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!--</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        A simple HTTP fuzzer example.  This example is by no means complete.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">    Features Shown:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">          - Template references</span></span>
<span style="font-style: italic"><span style="color: #9A1900">          - Size relation ship</span></span>
<span style="font-style: italic"><span style="color: #9A1900">          - Data sets</span></span>
<span style="font-style: italic"><span style="color: #9A1900">          - Multiple test's in a test block</span></span>
<span style="font-style: italic"><span style="color: #9A1900">          - Network communication</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Syntax:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">      python Peach\peach.py samples\HelloWorld.xml HelloWorldRun</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Output:</span></span>

<span style="font-style: italic"><span style="color: #9A1900">          This example will display all each test case to the console, you should see lots of test data</span></span>
<span style="font-style: italic"><span style="color: #9A1900">          scroll along.  This example should only take a couple minutes to complete.</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        Authors:</span></span>
<span style="font-style: italic"><span style="color: #9A1900">          Michael Eddington (mike@phed.org)</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        $Id: HTTP.xml 1762 2009-06-11 23:46:24Z meddingt $</span></span>

<span style="font-style: italic"><span style="color: #9A1900">        --&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Import defaults for Peach instance --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Include</span></span> <span style="color: #009900">ns</span><span style="color: #990000">=</span><span style="color: #FF0000">"default"</span> <span style="color: #009900">src</span><span style="color: #990000">=</span><span style="color: #FF0000">"file:defaults.xml"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Header"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Header"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">": "</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Value"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"\r\n"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Create a simple data template containing a single string --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpRequest"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- The HTTP request line: GET http://foo.com HTTP/1.0 --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RequestLine"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Defaults can be optionally specified via the</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                             value attribute --&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Method"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">" "</span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"char"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RequestUri"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">" "</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpVersion"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"\r\n"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Block&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- This block uses the Header block as a base</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                                and overrides one field --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HeaderHost"</span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"Header"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Header"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Host"</span> <span style="color: #009900">isStatic</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Block&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- This block uses the Header block as a base</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                                and overrides two fields --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Block</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HeaderContentLength"</span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"Header"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Header"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"Content-Length"</span> <span style="color: #009900">isStatic</span><span style="color: #990000">=</span><span style="color: #FF0000">"true"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Value"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Indicate a relation between this field</span></span>
<span style="font-style: italic"><span style="color: #9A1900">                                                and the "Body" field. --&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Relation</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"size"</span> <span style="color: #009900">of</span><span style="color: #990000">=</span><span style="color: #FF0000">"Body"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/String&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Block&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;String</span></span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"\r\n"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Blob</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Body"</span> <span style="color: #009900">minOccurs</span><span style="color: #990000">=</span><span style="color: #FF0000">"0"</span> <span style="color: #009900">maxOccurs</span><span style="color: #990000">=</span><span style="color: #FF0000">"1"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/DataModel&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- This creates a set of default values for a template.  They will</span></span>
<span style="font-style: italic"><span style="color: #9A1900">             override any default values specified in the template --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Data</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpGet"</span> <span style="color: #009900">DataModel</span><span style="color: #990000">=</span><span style="color: #FF0000">"Request"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Field</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RequestLine.Method"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"GET"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Field</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RequestLine.RequestUri"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://google.com"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Field</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RequestLine.HttpVersion"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"HTTP/1.1"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Field</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HeaderHost.Value"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"http://google.com"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Field</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Body"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">""</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Data&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Uses the data from HttpGet as a base --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Data</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpOptions"</span> <span style="color: #009900">DataModel</span><span style="color: #990000">=</span><span style="color: #FF0000">"Request"</span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpGet"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Field</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RequestLine.Method"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"OPTIONS"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Field</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RequestLine.RequestUri"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"*"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Field</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HeaderHost.Value"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">""</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Data&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Uses the data from HttpGet as a base --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Data</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpPost"</span> <span style="color: #009900">DataModel</span><span style="color: #990000">=</span><span style="color: #FF0000">"Request"</span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpGet"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Field</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"RequestLine.Method"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"POST"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Field</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Body"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Data&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State1"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpRequest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Data</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpGet"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"State2"</span> <span style="color: #009900">initialState</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;State</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"Initial"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Action</span></span> <span style="color: #009900">type</span><span style="color: #990000">=</span><span style="color: #FF0000">"output"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;DataModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpRequest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Data</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpOptions"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Action&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/State&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/StateModel&gt;</span></span>


        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Create a simple test to run --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpGetRequestTest"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"HTTP Request GET Test"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State1"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Target a local web server on port 80 --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"tcp.Tcp"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"host"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"127.0.0.1"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"port"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"80"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Publisher&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpOptionsRequestTest"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"HTTP Request OPTIONS Test"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;StateModel</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"State2"</span><span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Target a local web server on port 80 --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Publisher</span></span> <span style="color: #009900">class</span><span style="color: #990000">=</span><span style="color: #FF0000">"tcp.Tcp"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"host"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"127.0.0.1"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Param</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"port"</span> <span style="color: #009900">value</span><span style="color: #990000">=</span><span style="color: #FF0000">"80"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Publisher&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Test&gt;</span></span>

        <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- Configure a single run --&gt;</span></span>
        <span style="font-weight: bold"><span style="color: #0000FF">&lt;Run</span></span> <span style="color: #009900">name</span><span style="color: #990000">=</span><span style="color: #FF0000">"DefaultRun"</span> <span style="color: #009900">description</span><span style="color: #990000">=</span><span style="color: #FF0000">"HTTP Request Run"</span><span style="font-weight: bold"><span style="color: #0000FF">&gt;</span></span>

                <span style="font-style: italic"><span style="color: #9A1900">&lt;!-- The set of tests to run --&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpGetRequestTest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>
                <span style="font-weight: bold"><span style="color: #0000FF">&lt;Test</span></span> <span style="color: #009900">ref</span><span style="color: #990000">=</span><span style="color: #FF0000">"HttpOptionsRequestTest"</span> <span style="font-weight: bold"><span style="color: #0000FF">/&gt;</span></span>

        <span style="font-weight: bold"><span style="color: #0000FF">&lt;/Run&gt;</span></span>

<span style="font-weight: bold"><span style="color: #0000FF">&lt;/Peach&gt;</span></span>
<span style="font-style: italic"><span style="color: #9A1900">&lt;!-- end --&gt;</span></span></tt></pre></div></div>
</div>
</div>
</div>
<div id="footnotes"></div>
<div id="footer">
<div id="footer-text">

<table width="100%">
<td><td>
<a href="javascript:if(confirm(%27http://dejavusecurity.com/  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://dejavusecurity.com/%27" tppabs="http://dejavusecurity.com/"><img src="dejavusecurity.png" tppabs="http://old.peachfuzzer.com/images/dejavusecurity.png" height="50"/></a>
</td><td>&nbsp;&nbsp;&nbsp;</td><td>

Copyright (c) <a href="javascript:if(confirm(%27http://dejavusecurity.com/  \n\nThis file was not retrieved by Teleport Ultra, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?%27))window.location=%27http://dejavusecurity.com/%27" tppabs="http://dejavusecurity.com/">Deja vu Security</a> <br/>
Last updated 2014-02-23 21:21:17 PST
</td>
</table>

<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-1094513-10']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www/') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</div>
</div>
</div>
</div>
</body>
</html>
